home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UNIXTOOL
/
GNU
/
TILEFORTH
/
TILE
/
TILE~
/
!Tile
/
test
/
calc
< prev
next >
Wrap
Text File
|
1992-04-19
|
821b
|
57 lines
.( Loading Infix Calculator test...) cr
#include <Tile$Lib>.parser
#include <Tile$Lib>.calc
parser
\ Some test code for the simple calculator
calc parse" 10+(12*11) "
calc parse" -(10*-10)-(8*20) "
calc parse" 12*900/(10-9)*100 "
calc parse" (((20*(10+10)))) "
calc parse" 100+100/19"
calc parse" /10 "
calc interact
10+(12*11)
-(10*-10)-(8*20)
12*900/(10-9)*100
(((20*(10+10))))
100+100/19
/10
forth
\ High Level Extended Backus-Naur Form definition
#include <tile$test>.calc_bnf
parser
\ Some test code for the simple calculator
calc parse" 10+(12*11) "
calc parse" -(10*-10)-(8*20) "
calc parse" 12*900/(10-9)*100 "
calc parse" (((20*(10+10)))) "
calc parse" 100+100/19"
calc parse" /10 "
calc interact
10+(12*11)
-(10*-10)-(8*20)
12*900/(10-9)*100
(((20*(10+10))))
100+100/19
/10
forth
forth only